package org.elepower.dao;

import org.apache.ibatis.annotations.Param;
import org.elepower.pojo.PsInspectorDetails;
import org.elepower.pojo.PsSolverDetail;

import java.util.List;

public interface SolverDao extends Common<PsSolverDetail,Integer> {
    /**
     * 获取没有任务的消缺员
     * @return
     */
    public List<PsSolverDetail> getNormal();


    /**
     * 更新消缺员消缺任务
     * @return
     * @throws Exception
     */
    public void updateSolverTask(@Param("solvers")Integer[] solvers, @Param("taskId") Integer taskId) throws Exception;

    /**
     * 根据任务编号获取消缺员
     * @param taskId
     * @return
     */
    public List<PsSolverDetail> getTaskId(Integer taskId);

    /**
     * 根据任务编号修改消缺员状态
     * @param taskId
     */
    public void updateTaskIdSolverState(Integer taskId);
}
